<!DOCTYPE html>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>砭石</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/area.css">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_842683_mrv087fj6um.css">
</head>

<body>
    <header>
        <div class="top">
            <div class="title">
                <div class="logo"><img src="../images/logoWhite.png" alt=""></div>
                <p>后台管理系统</p>
            </div>
            <div class="login">
                <div class="userName">
                    <i class="icon iconfont icon-iconfontzhizuobiaozhun023104"></i>
                    <span>SZZ</span>
                </div>
                <div class="btn">安全退出</div>
            </div>
        </div>
    </header>
    <main>
        <nav class="leftNav">
            <ul>
                <li>
                    <a href="./home.html">
                        <i class="iconfont icon-shouye2"></i>
                        <span>首页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    </a>
                </li>
                <li>
                    <a href="./vip.html">
                        <i class="iconfont icon-iconfontzhizuobiaozhun023104"></i>
                        <span>会员管理</span>
                    </a>
                </li>
                <li>
                    <a href="./appoint.html">
                        <i class="icon-yuyue1 iconfont"></i>
                        <span>预约管理</span>
                    </a>
                </li>
                <li>
                    <a href="./serve.html">
                        <i class="icon-fuwuchuangb iconfont"></i>
                        <span>服务管理</span>
                    </a>
                </li>
                <li>
                    <a href="./news.html">
                        <i class="icon-xinwen iconfont"></i>
                        <span>新闻管理</span>
                    </a>
                </li>
                <li>
                    <a href="./store.html">
                        <i class="icon-dianpufill iconfont"></i>
                        <span>店铺管理</span>
                    </a>
                </li>
                <li class="active">
                    <a href="#">
                        <i class="icon-quyuditu iconfont"></i>
                        <span>区域设定</span>
                    </a>
                </li>
                <li>
                    <a href="./vipGrade.html">
                        <i class="icon-vip iconfont"></i>
                        <span>会员等级</span>
                    </a>
                </li>
                <li>
                    <a href="./order.html">
                        <i class="icon-dingdan iconfont"></i>
                        <span>订单管理</span>
                    </a>
                </li>
                <li>
                    <a href="./operatingCenter.html">
                        <i class="icon-shezhi iconfont"></i>
                        <span>运营中心</span>
                    </a>
                </li>
                <li>
                    <a href="./record.html">
                        <i class="icon-jiankang iconfont"></i>
                        <span>健康档案</span>
                    </a>
                </li>
            </ul>
        </nav>
        <div class="rightContent">
            <div class="region">
                <div class="addRegion">
                    <p>新建省级区域</p>
                </div>
                <div class="list backWit">
                    <div class="addEdit">
                        <input type="text">
                        <p><span>确定</span><b>取消</b></p>
                    </div>
                    <div class="swit">
                        <div class="switContent">
                            <b>▶</b>
                            <div class="btm">
                                <div class="provinceName">
                                    <h3>山东省</h3>
                                    <p>（省级区域）</p>
                                </div>
                                <div class="operation">
                                    <span class="edit">编辑</span>
                                    <span class="add">创建下级</span>
                                    <span class="delete">删除</span>
                                </div>
                            </div>
                        </div>
                        <ul class="citys">
                            <li>
                                <div class="city">
                                    <b>▶</b>
                                    <div class="cityDeta">
                                        <div class="provinceName">
                                            <h3>济南市</h3>
                                            <p>（市级区域）</p>
                                        </div>
                                        <div class="operation">
                                            <span class="edit">编辑</span>
                                            <span class="add">创建下级</span>
                                            <span class="delete">删除</span>
                                        </div>
                                    </div>
                                </div>
                                <ul class="county">
                                    <li>
                                        <div class="countyDeta">
                                            <div class="provinceName">
                                                <h3>历下区</h3>
                                                <p>（县级区域）</p>
                                            </div>
                                            <div class="operation">
                                                <span class="edit">编辑</span>
                                                <span class="delete">删除</span>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div class="swit">
                        <div class="switContent">
                            <b class="">▶</b>
                            <div class="btm">
                                <div class="provinceName">
                                    <h3>山东省</h3>
                                    <p>（省级区域）</p>
                                </div>
                                <div class="operation">
                                    <span class="edit">编辑</span>
                                    <span class="add">创建下级</span>
                                    <span class="delete">删除</span>
                                </div>
                            </div>
                        </div>
                        <ul class="citys">
                            <li>
                                <div class="city">
                                    <b>▶</b>
                                    <div class="cityDeta">
                                        <div class="provinceName">
                                            <h3>济南市</h3>
                                            <p>（市级区域）</p>
                                        </div>
                                        <div class="operation">
                                            <span class="edit">编辑</span>
                                            <span class="add">创建下级</span>
                                            <span class="delete">删除</span>
                                        </div>
                                    </div>
                                </div>
                                <ul class="county">
                                    <li>
                                        <div class="countyDeta">
                                            <div class="provinceName">
                                                <h3>历下区</h3>
                                                <p>（县级区域）</p>
                                            </div>
                                            <div class="operation">
                                                <span class="edit">编辑</span>
                                                <span class="delete">删除</span>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div class="swit">
                        <div class="switContent">
                            <b>▶</b>
                            <div class="btm">
                                <div class="provinceName">
                                    <h3>山东省</h3>
                                    <p>（省级区域）</p>
                                </div>
                                <div class="operation">
                                    <span class="edit">编辑</span>
                                    <span class="add">创建下级</span>
                                    <span class="delete">删除</span>
                                </div>
                            </div>
                        </div>
                        <ul class="citys">
                            <li>
                                <div class="city">
                                    <b>▶</b>
                                    <div class="cityDeta">
                                        <div class="provinceName">
                                            <h3>济南市</h3>
                                            <p>（市级区域）</p>
                                        </div>
                                        <div class="operation">
                                            <span class="edit">编辑</span>
                                            <span class="add">创建下级</span>
                                            <span class="delete">删除</span>
                                        </div>
                                    </div>
                                </div>
                                <ul class="county">
                                    <li>
                                        <div class="countyDeta">
                                            <div class="provinceName">
                                                <h3>历下区</h3>
                                                <p>（县级区域）</p>
                                            </div>
                                            <div class="operation">
                                                <span class="edit">编辑</span>
                                                <span class="delete">删除</span>
                                            </div>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </main>
    <script src="../js/jquery-3.3.1.js"></script>
    <script src="../js/echarts.min.js"></script>
    <script>
        $(function () {
            $('.swit').click(function(){
                var cla = $(this).children('.switContent').children('b').attr('class');
                if(cla){
                    $(this).children('.citys').hide();
                    $(this).children('.citys').children('li').children('.county').hide();
                    $(this).children('.switContent').children('b').removeClass('rotate');
                    $(this).children('.citys').children('li').children('.city').children('b').removeClass('rotate');
                }else{
                    $(this).siblings('.swit').children('.citys').hide();
                    $(this).siblings('.swit').children('.citys').children('li').children('.county').hide();
                    $(this).children('.citys').show();
                    
                    $(this).children('.switContent').children('b').addClass('rotate');
                    $(this).siblings('.swit').children('.switContent').children('b').removeClass('rotate');
                    $(this).siblings('.swit').children('.citys').children('li').children('.city').children('b').removeClass('rotate');
                }
               
            })
            $('.city').click(function(e){
                e.stopPropagation();
                e.preventDefault();
                var cla = $(this).children('b').attr('class');
                if(cla){
                    $(this).siblings('.county').hide();
                    $(this).children('b').removeClass('rotate');
                }else{
                    $(this).parent().siblings('li').children('.county').hide();
                    $(this).siblings('.county').show();
                    $(this).children('b').addClass('rotate');
                    $(this).parent().siblings('li').children('.city').children('b').removeClass('rotate');
                }
            })
            $('.county').click(function(e){
                e.stopPropagation();
                e.preventDefault();
            })
            $('.edit').click(function(){
                $(this).parent().siblings().children('h3').attr('contenteditable','true');
            })
        })
    </script>
</body>

</html>